<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>地址管理</title>
	<meta name="author" content="m.wine22.com">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">

	<link rel="stylesheet" type="text/css" href="/css/base.css" charset="UTF-8" />
	<link rel="stylesheet" type="text/css" href="/css/cart.css" />
</head>
<body>
		<#assign title="地址管理">
	<#include "/common/header-user.html">
	<!-- 判断是购物车过来还是用户这边过来之后不同的处理：点击修改和点击选择地址并回填 -->
	<!-- 列表作为html片段返回，各自页面自己操作是修改还是点击地址并回填 -->
	<div class="address-wapper">
		<input type="hidden" id="page" value="list">
		<#if addrs?? && addrs?size gt 0>
		<#list addrs as item>
		<ul addrId=${(item.id)!0} name="addrUl">
			<li class="address-name"><span>${(item.contactor)!"--"}&ensp;${(item.phone)!"--"}</span>&emsp;<#if ((item.defaultAddr)!0) == 1>【默认地址】</#if></li>
			<li class="address-detail">
				<div class="address-detail-left">
					<p>${(item.provinceName)!""} ${(item.cityName)!""} ${(item.countryName)!""}</p>
					<p>${(item.address)!"--"}</p>
				</div>
				<div class="address-detail-right"></div>
			</li>
		</ul>
		</#list>
		<#else>
		<ul>
			<a href="/address/add.html">
				<li class="address-detail">
					<div class="address-detail-left">
						<p style="line-height: 2.3rem; height:2.3rem; font-size: 1rem;">您还没有收货地址，马上新建</p>
					</div>
					<div class="address-detail-right"></div>
				</li>
			</a>
		</ul>
		</#if>
	</div>
	
	<!-- 底部占位的DIV -->
	<div class="bottom-div"></div>
	
	<!-- 底部工具栏和提示 -->
	<div class="tools-btm">
		<div class="tools-btm-right red-yellow-color address-btm-right" id="addressAddBtn">新建地址</div>
	</div>

</body>
<script type="text/javascript" src="/js/biz/address.js"></script>
</html>
